package com.eagle.support.utils;

import android.app.Activity;
import android.text.TextUtils;

import com.eagle.view.widget.tip.Effects;
import com.eagle.view.widget.tip.NotificationView;

/**
 * Created by gc on 2016/12/7. toast工具类
 */
public class ToastUtils {
    public static void showToast(Activity activity, String strRes, int viewGroupResId) {
        if (!TextUtils.isEmpty(strRes)) {
            NotificationView.build(activity, strRes, Effects.slideOnTop, viewGroupResId).show();
        }
    }
}
